#include "include/transmissioninter.h"
TransmissionInter::TransmissionInter( QObject* parent, ParamNonStandard485* param ) {
    param_p = param;
}

TransmissionInter::TransMissionData TransmissionInter::getTransMissionData( uchar device_address, TransmissionInter::TransMissionState state, TransmissionInter::TransAction trans_action ) {
    TransMissionData data;
    data.device_address = device_address;
    data.trans_action   = trans_action;
    data.state          = state;
    data.errorCode      = Er00;
    return data;
}

TransmissionInter::TransMissionData TransmissionInter::getTransMissionData( uchar device_address, TransmissionInter::TransMissionState state, TransmissionInter::TransMissionErrorCode core ) {
    TransMissionData data;
    data.device_address = device_address;
    data.trans_action   = Stop;
    data.state          = state;
    data.errorCode      = core;
    return data;
}
